home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-05-21 | 2.5 KB | 71 lines | [TEXT/KAHL] |
- /***************************************************************************
-
- Number Picker CDEF v1.0
- by Michael F. Kamprath
-
- ©1994 by Michael F. Kamprath
-
-
- Requirments:
- ============
-
- This CDEF can only be used with system 7.0 or later. This is because
- this CDEF uses System 7's Color Icon family manager.
-
- Description
- ===========
- This is very simple CDEF which can be used for setting numbers. The user can use
- an up/down arrow to adjust the control value within the control's bounds. The
- control's title is displayed to the left of the number, and both the number and
- title get dimmed when the control hilite is set to 255. Clicking the control's
- up/down arrow, TrackControl() will return on of two values:
-
- button up: 2
- button down: 4
-
- From there, you adjust the control value appropiately. It's that simple.
-
- NOTE: The icon id for the up/down arrow is hard coded into the CDEF at
- 15000. You can change the icon supplied with this CDEF, but remember it
- should be a 16x16 icon family (ics#), and that the top half is considered
- the up button, and the bottom half is the down button. Notice that
- icon #15001 represents the "up button depressed" icon, and #15002 represents
- the "down button depressed" icon. All of these (15000-15002) icons must
- be defined for the CDEF to work properly.
-
- Shareware Info:
- ===============
-
- If you use this CDEF for personal use, all I ask is that you send me a note
- and maybe a copy of the program you use it in.
-
- If you use this CDEF for somethiong that you later charge money for (like
- your own shareware software or commercial software), the price for it's use
- is a one time payment of $5 and maybe a copy of your program. If you don't
- wish to give me a free copy of your program, I understand (after all, I'm
- asking for money).
-
- If you wish for the source code to this CDEF, I will send it to you if you
- include a disk with your shareware payment ($5). I will not send the source
- code out with out the shareware payment or the disk (though I will send it
- via e-mail if you send me the shareware payment before I lose my e-mail
- account).
-
- Please make all payments in U.S. funds.
-
- You may contact me by:
-
- e-mail: kamprath@aol.com
-
- postal mail: Michael F. Kamprath
- 524 Avenue C
- Redondo Beach, CA 90277
-
- Legal Stuff
- ===========
-
- I provide no warranty, written or implied, nor do I accept any responsibility
- for damages inflicted, real or imagined, by the use of this CDEF.
-
-
- ***************************************************************************/